<template>
  <div class="w-1/2 all" style="background-color: #008767;">
    <div class="gmv">实时下单:{{ info.shop_name }}</div>
    <div class="gmv">下单GMV:<span>{{ info.price }}</span></div>
  </div>
</template>

<script setup>
import { toRefs ,onMounted ,ref } from 'vue'

const props = defineProps({
  info: Object,
})

const {info} =toRefs(props)

 onMounted(()=>{
  // console.log(info.value);
 })
</script>

<style lang="scss" scoped>
.all{
  height: 100%;
  padding: 3%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  .gmv{
    color: #fff;
    // font-size: 1.875rem;
    font-size:calc(100vw * 30 / 1920); 
    margin: 0.625rem 0;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;


    span{
      color: #b1e790;
      // font-size: 1.875rem;  
      font-size:calc(100vw * 30 / 1920); 
      font-weight: bold;
    }
  }
}
</style>
